module.exports = {
	publicPath: './',
	productionSourceMap: false,
	//changeOrigin:true,
	devServer: {
		// host: '192.168.0.170',
		port: 8200,
		open: true,
		proxy: {
			//配置跨域
			'/api': {
				target: "http://81.69.252.166:1999",
				changOrigin: true,
				pathRewrite: {
					'^/api': '/'
				}
			}
		},

	},
	chainWebpack: (config) => {
		config.module
            .rule("fonts")
            .test(/.(ttf|otf|eot|woff|woff2)$/)
            .use("url-loader")
            .loader("url-loader")
            .tap(options => {
                options = {
                // limit: 10000,
                    name: '/static/fonts/[name].[ext]',
                }
                return options
            })
            .end()
	}
}
